package com.woniu.vo;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Description:
 * @Author: woniu
 * @date: 2024/1/2 17:15
 */
@Builder
@Accessors(chain = true)
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel("红包列表界面详情")
public class RedPacketVO implements Serializable {
    private static final long serialVersionUID = -7185071856898791075L;

    @ApiModelProperty(value = "红包总数量")
    private Long count;

    @ApiModelProperty(value = "已被领取的红包数量,这个数量等于红包总数量则是红包已被抢完")
    private Long receivedCount;

    @ApiModelProperty(value = "耗时(分钟)")
    private Long timeConsuming;

    @ApiModelProperty(value = "用户抢到的金额(没有则是null或者0)")
    private Double userRedPacketMoney;

    @ApiModelProperty(value = "抢到红包的用户列表")
    private IPage<RedPacketPageVO> redPacketPage;
}
